<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ include file="taglibs.jsp"%>
<%@ include file="RolePowerManager.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <meta http-equiv="Content-Type" content="application/x-www-form-urlencoded; charset=UTF-8">
  <script type="text/javascript" src="${ctx}/js/jquery-1.8.1.js"></script>
  <script type="text/javascript" src="${ctx}/js/jquery.easydrag.handler.beta2.js"></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/TrainTypeManager.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/TrainPropertyManager.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/TeacherManager.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/CourseManager.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/util.js'></script>
  <script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="${ctx}/js/Train/TrainManager.js"></script></head>
  
  <body>
  <center>
  <form action="${ctx}/AddTrainServlet">
    <table border="1">
    	<tr>
    		<td>培训名称：</td>
    		<td><input type="text" name="trainname" id="trainname" />
    		</td>
    	</tr>
    		
   	 	<tr>
   	 	<td>培训类别</td>
    		<td>
    		<select name="traintype" id="traintype">
    			<option value="0">--请选择--</option>
    		</select>
    		</td>
    	</tr>
    	<tr>
   	 	<td>培训性质</td>
    		<td>
    		<select name="trainProperty" id="trainProperty">
    			<option value="0">--请选择--</option>
    		</select>
    		</td>
    	</tr>
    	<tr>
    		<td>培训地点</td>
    		<td><input type="text" name="address"></td>
    	</tr>
    	<tr>
    		<td>开始时间</td>
    		<td><input type="text" name="starttime" onClick="WdatePicker()"></td>
    	</tr>
    	<tr>
    		<td>结束时间</td>
    		<td><input type="text" name="endtime" onClick="WdatePicker()"></td>
    	</tr>
    	<tr>
    		<td>培训费用</td>
    		<td><input type="text" name="money"></td>
    	</tr>
    	<tr>
    		<td>培训单位</td>
    		<td><input type="text" name="organization"></td>
    	</tr>
    	<tr>
    		<td>负责人</td>
    		<td><input type="text" name="manager"></td>
    	</tr>
    	 <tr id="course" >
    		<td>科目</td>
    		<td><select name="course" id="courses">
    			<option value="0">--请选择--</option>
    		</select>
    		所占比重<input type="text" name="percent" size="4">
    		讲师<select name="teacher" id="teacher">
    			<option value="0">--请选择--</option>
    		</select>
    		</td>
    	</tr>
    	<tr>
    		<td></td>
    		<td><input type="button" value="增加科目" onclick="addCourseInput()"></td>
    	</tr>
    	<tr>
    		<td></td>
    		<td><input type="reset" value="重置"/><input type="submit" value="提交" onclick="addTrain()"/></td>
    	</tr>
    </table> 
    </form>
    </center>
  </body>
</html>
